import React from "react";
//导入路由相关的组件
import {
  useRoutes,
} from "react-router-dom";

//导入路由的数组
import routesArr from "../../routes";

export default function RouterCom() {
  //调用 useRoutes 函数
  let routes = useRoutes(routesArr);

  return <>{routes}</> // {routes: routes}
    
}
